#include "StdAfx.h"
#include "GMainDlg.h"
#include "Role.h"
#include "GTeam.h"
GMainDlg::GMainDlg(void)
{
	m_bEnableMove = FALSE;
}

GMainDlg::~GMainDlg(void)
{
}

DWORD GMainDlg::HandleEvent(DWORD hwnd)
{
	if (m_btnBegin->GetWnd() == hwnd)
	{
		GRole* pLeft = new GRole;
		GRole* pRight = new GRole;
		GTeam::Inst().SetLeftMember(pLeft);
		GTeam::Inst().SetLocalMember(&GRole::GetLocalRole());
		GTeam::Inst().SetRightMember(pRight);
		GTeam::Inst().RandomCard();
	}
	return 0;
}
DWORD GMainDlg::SetSubWnd()
{
	m_btnBegin = (GButton*)GetWnd(1);
	return 0;
}